# name : moving average using stats::filter
# key : moving_average@stat::filter
# contributor: Shuguang Sun
# --
stats::filter(${1:x}, rep(1 / ${2:n}, $2), sides = ${3:1})
